lib: Add an API to GPG verify a commit given a remote
authorColin Walters <walters@verbum.org>
Wed, 16 Nov 2016 16:50:43 +0000 (11:50 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 17 Nov 2016 11:33:41 +0000 (11:33 +0000)
commit24bf257ee9f16959a6f480c7c1c16cdbe4aabc91
tree9b3baf25f891883934d5732aaf07ab1104e200c3
parentf244c702772c69378099685316033d4a6f7b862c
lib: Add an API to GPG verify a commit given a remote

Conceptually we've been moving towards having our GPG verification
paths be per-remote.  The code internally supports this, but we
didn't expose an API to use it conveniently.

This came up when trying to add a new `gpgkeypath` option, since
right now rpm-ostree manually finds keyrings for the remote, and
hence it wasn't looking at the keypath, and said "Unknown key"
in status.

Adding an API fixes this nicely.

Closes: #576
Approved by: giuseppe
apidoc/ostree-sections.txt
src/libostree/libostree.sym
src/libostree/ostree-repo.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-show.c
tests/test-commit-sign.sh